import { convertNumberToTime } from '@/utils/handleTime'

export const missionColumns = [
  // { title: '编号', dataIndex: 'id', key: 'id' },
  { title: '目标内容', dataIndex: 'content', key: 'content' },
  { title: '状态', key: 'status', scopedSlots: { customRender: 'status' } },
  { title: '到期日', dataIndex: 'dueDate', key: 'dueDate', customRender: convertNumberToTime },
  { title: '操作', key: 'operation', scopedSlots: { customRender: 'operation' } }
]

export const resultsColumns = [
  // { title: '结果编号', dataIndex: 'keyResultId', key: 'keyResultId' },
  { title: '结果内容', dataIndex: 'keyResultContent', key: 'keyResultContent' },
  { title: '结果状态', key: 'status', scopedSlots: { customRender: 'status' } },
  { title: '结果到期日', dataIndex: 'dueDate', key: 'dueDate', customRender: convertNumberToTime },
  {
    title: '操作',
    key: 'operation',
    scopedSlots: { customRender: 'operation' }
  }
]
